<form id="editform">
	<input type="hidden" value='${azt_category.id}' name="id">
	<table class="table table-hover table-bordered">
	


		<tr>
			<th>下接选择</th>
			<td><select name="role"  class="form-control"> 
					<option value="0">无角色</option> 
					<option value="0">无角色</option> 
					<option value="0">无角色</option> 
				</select>
			</td>
		</tr>


		<tr>
			<th>单选</th>
			<td>
			<label class="radio-inline"> 
				<input type="radio" name="ispurchaser"   value="1"> 是
			</label> 
			<label class="radio-inline"> 
				<input type="radio" name="ispurchaser"  value="0"> 否 
			</label> 
			</td>
		</tr>

	</table>
</form>
<div class="center-block">
	<button class="btn btn-success" onclick="submit()">提交</button>
</div>
<script type="text/javascript">
	$(function() {
		$("#editform").validate({
			rules : {
				mobile : {
					required : false,
					mobile : true
				},
				email : {
					email : true
				}
			}
		});
	})

	function submit() {
		if ($("#editform").valid()) {
			art.dialog.post({
				url:"/user/o_save.do",
				data:$("#editform").serialize(),
				success:function(data){
					if(data.success){
						refresh();
					}
				}
			},"保存中 ……");
		}
	}
</script>


